﻿@{
    ViewBag.Title = "ToMongoDB";
var lst = ViewData["cvs"] as List<SmallJob.Model.MConversation>;
}
<ul>
    @foreach (var item in lst)
    {
        <li>@item.Person1ID - @item.Person2ID - @item.ShortID</li>
        if (item.Messages!=null && item.Messages.Count > 0)
        {
        <ul>
            @foreach (var item2 in item.Messages)
            {
                <li>@item2.SenderID To @item2.ReceiverID : @item2.Content @item2.Date</li>
            }
        </ul>
        }
    }
</ul>
